<?php if($mode == "SHOW"){?>
<?php if($tips){?>
<?php foreach($tips as $tips):?>
<div class="small text-normal">
<?= substr($tips->description,0,150);?> . . . <a class="text text-danger" href="<?= base_url();?>tipsview/-<?= $tips->id;?>">more</a>
</div>
<small class="pull-right text text-success">
						Posted By : Mr. <?= $this->profile_model->getProfile($tips->profile_id)->title;?>
						</small>
						<hr>
<?php endforeach;}?>



<?php }?>
<?php if($mode == "VIEW"){?>


<div class="panel panel-default">
	
	<div class="panel-body">
		<p>
		
		<div class="">
			<?= $tips['info']->description;?>
		</div>
		</p>
		<small class="pull-right text text-success">
						Posted By : Mr. <?= $this->profile_model->getProfile($tips['info']->profile_id)->title;?>
						</small>

	</div>

</div>
<?php }?>